package com.lsl.prototype_pattern.example.deepcopy;

import java.io.Serializable;

/**
 * description:附件类
 *
 * @author: liushengli
 * data: 2022/12/15
 */
public class Attachment implements Serializable {

    private String name; //附件名

    public void setName(String name) {

        this.name = name;

    }

    public String getName() {

        return this.name;

    }

    public void download() {

        System.out.println("下载附件，文件名为" + name);

    }

}

